﻿@{
    Layout = null;
}
@using MvcMall.AdminPortal.Controllers.ArticleCategory.ViewModels;
@model ArticleCategoryModel
<!DOCTYPE html>
<html>
<head>
    <title>
        @if (Model != null)
        {
            @:修改文章分类
            }
        else
        { @:新增文章分类
                                       
        }</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs({
                ajaxOptions: {
                    error: function (xhr, status, index, anchor) {
                        $(anchor.hash).html("系统繁忙,请稍候再试");
                    }
                }
            });
             
        });  
    </script>
</head>
<body>
    <div id="tabs">
        <ul>
            <li><a href="#saveMenu">
                @if (Model != null)
                {
                    @:修改文章分类
            }
                else
                { @:新增文章分类
                                               
                }
            </a></li>
        </ul>
        <div id="saveMenu">
            @using (Html.BeginForm("Save", "ArticleCategory", FormMethod.Post, new { Id = "articleCategoryForm" }))
            {
                
                <div class="editor-label">
                    @Html.HiddenFor(m => m.ArticleCategoryId)
                    @Html.LabelFor(m => m.CategoryName)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(x => x.CategoryName, new { @maxlength = "32" })
                    @Html.ValidationMessageFor(x => x.CategoryName)
                </div>
              
                <p>
                    <input type="submit" value="保存" /></p> 
            }
        </div>
    </div>
</body>
</html>
